export default {

	// Questionnaires
	getQuestionnaire:{//获取问卷
		url:'/qa/questionnaire/get',
		require:['token','clientid','id']
	},
	getQuestionnaireList:{//获取问卷列表
		url:'/qa/questionnaire/list',
		require:['token','clientid']
	},
	createQuestionnaire:{//新建问卷
		url:'/qa/questionnaire/create',
		require:['token','clientid','title','typeId']
	},
	updateQuestionnaire:{//修改问卷
		url:'/qa/questionnaire/update',
		require:['token','clientid','title','typeId','id']
	},
	deleteQuestionnaire:{//删除问卷
		url:'/qa/questionnaire/delete',
		require:['token','clientid','id']
	},
	// Questions
	createInstance:{//创建实例
		url:'/qa/instance/create',
		require:['token','clientid','qaId','repeatable','title']
	},
  updateInstance:{//更新实例
		url:'/qa/instance/update',
		require:['token','clientid','instanceId']//repeatable(选填)、enable(选填)、title(选填)
	},
  deleteInstance:{//删除实例
    url:'/qa/instance/delete',
    require:['token','clientid','instanceId']
  },
  resetInstance:{//重置实例
    url:'/qa/instance/reset',
    require:['token','clientid','instanceId']
  },
	listInstance:{//获取实例列表
		url:'/qa/instance/list',
		require:['token','clientid']
	},
	getInstance:{//获取实例
		url:'/qa/instance/get',
		require:['token','clientid','instanceId']
	},
  createQaType:{//创建问卷类型
    url:'/qa/qaType/create',
    require:['token','clientid','name','code','mark']
  },
  delQaType:{//删除问卷类型
    url:'/qa/qaType/delete',
    require:['token','clientid','id']
  },
  updateQaType:{//修改问卷类型
    url:'/qa/qaType/update',
    require:['token','clientid','id']//name,code,mark
  },
  getQaType:{//获取问卷类型
    url:'/qa/qaType/get',
    require:['token','clientid','id']
  },
  getQaTypeList:{//获取问卷类型列表
    url:'/qa/qaType/list',
    require:['token','clientid']
  },
}
